import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import Components from 'unplugin-vue-components/vite';
import { VantResolver } from 'unplugin-vue-components/resolvers';
import path from 'path'

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [
    vue(),
    Components({
      resolvers: [VantResolver()],
    })],
  resolve: {
     alias: {
       // '@':'绝对路径', 若有需要，自行配置其他
       '@': path.join(__dirname, 'src')
     }
  }
})
